import BasicLayout from '../layouts/BasicLayout.vue'
import BlankLayout from '../layouts/BlankLayout.vue'
import ChatLayout from '../layouts/ChatLayout.vue'
export const constantRouterMap = [
  // {
  //   path: '/',
  //   name: 'dashed',
  //   meta: { title: 'Home' },
  //   component: BasicLayout,
  //   redirect: '/goodsManage',
  //   children: [
  // {
  //   path: '/dashboard',
  //   name: 'dashboard',
  //   meta: {
  //     title: '数据中心',
  //     icon: h(antIcons['AimOutlined']),
  //     flat: true,
  //   },
  //   component: BlankLayout,
  //   redirect: () => ({ name: 'concat' }),
  //   children: [
  //     {
  //       path: '/concat',
  //       name: 'concat',
  //       meta: { title: '联系平台' },
  //       component: () => import('../views/index/index.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/goodsManage',
  //   name: 'goodsManage',
  //   meta: {
  //     title: '商品管理',
  //     icon: h(antIcons['AlipayCircleFilled']),
  //     flat: true,
  //   },
  //   component: BlankLayout,
  //   children: [
  //     {
  //       path: 'goodsManageIndex',
  //       name: 'goodsManageIndex',
  //       meta: { title: '商品管理' },
  //       component: () => import('../views/goodsManage/index.vue'),
  //     },
  //     {
  //       path: 'categoryApplyFor',
  //       name: 'categoryApplyFor',
  //       meta: { title: '类目申请' },
  //       component: () =>
  //         import('../views/goodsManage/categoryApplyFor.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/orderManage',
  //   name: 'orderManage',
  //   meta: { title: '订单管理', icon: '', flat: true },
  //   component: BlankLayout,
  //   redirect: () => ({ name: 'goodsOrder' }),
  //   children: [
  //     {
  //       path: 'goodsOrder',
  //       name: 'goodsOrder',
  //       meta: { title: '商品订单' },
  //       component: () => import('../views/orderManage/goodsOrder.vue'),
  //     },
  //     {
  //       path: 'afterSaleOrders',
  //       name: 'afterSaleOrders',
  //       meta: { title: '售后订单' },
  //       component: () => import('../views/orderManage/afterSaleOrders.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/configManage',
  //   name: 'configManage',
  //   meta: { title: '配置管理', icon: '', flat: true },
  //   component: BlankLayout,
  //   redirect: () => ({ name: 'address' }),
  //   children: [
  //     {
  //       path: 'address',
  //       name: 'address',
  //       meta: { title: '退货地址' },
  //       component: () => import('../views/configManage/address.vue'),
  //     },
  //     {
  //       path: 'receivingAccount',
  //       name: 'receivingAccount',
  //       meta: { title: '收款账户' },
  //       component: () =>
  //         import('../views/configManage/receivingAccount.vue'),
  //     },
  //     {
  //       path: 'shopSetting',
  //       name: 'shopSetting',
  //       meta: { title: '店铺设置' },
  //       component: () => import('../views/configManage/shopSetting.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/salesManage',
  //   name: 'salesManage',
  //   meta: { title: '营收管理', icon: '', flat: true },
  //   component: BlankLayout,
  //   redirect: () => ({ name: 'salesManageIndex' }),
  //   children: [
  //     {
  //       path: 'salesManageIndex',
  //       name: 'salesManageIndex',
  //       meta: { title: '账户中心' },
  //       component: () => import('../views/salesManage/index.vue'),
  //     },
  //     {
  //       path: 'transactionHistory',
  //       name: 'transactionHistory',
  //       meta: { title: '交易记录' },
  //       component: () =>
  //         import('../views/salesManage/transactionHistory.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/accountsManage',
  //   name: 'accountsManage',
  //   meta: { title: '账号管理', icon: '', flat: true },
  //   component: BlankLayout,
  //   redirect: () => ({ name: 'accounts' }),
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'accounts',
  //       meta: { title: '账号管理' },
  //       component: () => import('../views/accountsManage/index.vue'),
  //     },
  //     {
  //       path: 'role',
  //       name: 'role',
  //       meta: { title: '角色管理' },
  //       component: () => import('../views/accountsManage/role.vue'),
  //     },
  //     {
  //       path: 'menu',
  //       name: 'menuManage',
  //       meta: { title: '菜单管理' },
  //       component: () => import('../views/accountsManage/menu.vue'),
  //     },
  //     {
  //       path: 'log',
  //       name: '操作日志',
  //       meta: { title: '操作日志' },
  //       component: () => import('../views/accountsManage/log.vue'),
  //     },
  //   ],
  // },
  //   ],
  // },
  {
    path: '/login',
    component: BlankLayout,
    redirect: '/login/index',
    hidden: true,
    children: [
      {
        path: 'index',
        name: 'index',
        component: () => import('../views/login/Login.vue'),
      },
    ],
  },

  {
    path: '/message',
    component: ChatLayout,
    redirect: '/message/index',
    hidden: true,
    children: [
      {
        path: 'index',
        name: '消息',
        component: () => import('../views/message/message.vue'),
      },
    ],
  },

  {
    path: '/404',
    component: () => import('../views/exception/404.vue'),
  },
]
